package com.xcexample.electronicclasscard.main

data class HomeBean(
    val data: HomeResponse,
    val success: Boolean,
    val code: Int,
    val msg: String
)
data class HomeResponse(
    val `class`: Class,
    val course: Course,
    val duty: ArrayList<Duty>,
    val kaoqin: Kaoqin,
    val schoole_img: String,
    val schoole_name: String
) {
    data class Class(
        val class_img: String,
        val class_name: String,
        val kouhao: String,
        val target: String,
        val geyan: String,
        val teacher: String
    )

    data class Course(
        val cur_week: String?="",
        val list: ArrayList<Weeks>,
        val room: String
    ) {
        data class Weeks(
            val is_week: Int,
            val list: ArrayList<Content>,
            val week: String
        ) {
            data class Content(
                val chapter: String,
                val is_double: Int,
                val is_single: Int,
                val teacher: String,
                val time: String,
                val title: String
            )
        }
    }

    data class Duty(
        val id: String,
        val student: String,
        val area: String,
        val time: String
    )

    data class Kaoqin(
        val lack: Int,
        val lack_rate: String,
        val late: Int,
        val late_rate: String,
        val shidao: Int,
        val shidao_rate: String,
        val total: Int
    )
}